<script setup lang="ts">

let emits = defineEmits(['buy','guaguale'])

function guaguale(){
  emits('guaguale',100)
}

function buy(){
  emits('buy',-5)
}
</script>

<template>
  <button @click="guaguale">刮刮乐</button>
  <button @click="buy">买棒棒糖</button>
</template>

<style scoped>

</style>